﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HrEFCore.Models
{
	public class View_UserRoles
	{
		[Key]
		[DisplayName("编号")]
		public short UId { get; set; }//主键编号
        [DisplayName("角色编号")]
        public short UserRolesID { get; set; }
        [DisplayName("用户名")]
		[Required(ErrorMessage = "用户名不能为空")]
		public string UName { get; set; }//用户名
		[DisplayName("真实姓名")]
		[Required(ErrorMessage = "真实姓名不能为空")]
		public string UTrueName { get; set; }//真实姓名
		[DisplayName("密码")]
		[Required(ErrorMessage = "密码不能为空")]
		public string UPassWord { get; set; }//密码
		public short RolesID { get; set; }
		[DisplayName("角色名称")]
		[Required(ErrorMessage = "请输入角色名称")]
		public string RolesName { get; set; }
		[DisplayName("角色说明")]
		[Required(ErrorMessage = "请输入角色说明")]
		public string RolesInstruction { get; set; }
		[DisplayName("是否可用")]
		public bool RolesIf { get; set; }
	}
}